package com.jumi.microservice.material.domain;

import java.io.Serializable;
import java.util.Date;

import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.annotations.ApiModelProperty;


/**
 * @description: 商品属性VO
 * @author: ZhangY
 */
public class JmMaterialAttributeVo implements Serializable
{
    @ApiModelProperty(value = "属性id")
    private Integer attrId;

    /**
     * EasyExcel会根据Excel中的名字和对象映射，这里需要注意，如果名字重复，会导致只有一个字段读取到数据
     */
    @ExcelProperty("属性名")
    @ApiModelProperty(value = "属性名称")
    private String attrName;

    /**
     * 1是启动
     */
    @ApiModelProperty(value = "状态(1启用，0禁用)")
    private Integer attrStatus;

    @ApiModelProperty(value = "排序")
    private Integer sortNum;

    /**
     * 1是删除
     */
    @ApiModelProperty(value = "是否删除(0:否,1:是)")
    private Integer isDel;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

    @ApiModelProperty(value = "添加人")
    private String createBy;

    @ApiModelProperty(value = "修改人")
    private String updateBy;

    //以上为JmMaterialAttribute

    @ApiModelProperty(value = "查询条件:属性值")
    private String attrValue;

    @ApiModelProperty(value = "开始时间")
    private Date startTime;

    @ApiModelProperty(value = "结束时间")
    private Date endTime;

    @ApiModelProperty(value = "每页显示条数")
    private String pageSize = "10";

    @ApiModelProperty(value = "当前页数")
    private String pageNum = "1";

    @ExcelProperty("属性值名")
    @ApiModelProperty(value = "添加属性时的属性值(多个属性值以逗号分割),以及Excel传值")
    private String attrValues;

    public JmMaterialAttributeVo(Object[] objs)
    {
        this.attrName=objs[0].toString();
        this.attrValues=objs[1].toString();
    }

    public JmMaterialAttributeVo() {
    }

    public JmMaterialAttributeVo(Integer attrId, String attrName, Integer attrStatus, Integer sortNum, Integer isDel, Date createTime, Date updateTime, String createBy, String updateBy, String attrValue, Date startTime, Date endTime, String pageSize, String pageNum, String attrValues) {
        this.attrId = attrId;
        this.attrName = attrName;
        this.attrStatus = attrStatus;
        this.sortNum = sortNum;
        this.isDel = isDel;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.createBy = createBy;
        this.updateBy = updateBy;
        this.attrValue = attrValue;
        this.startTime = startTime;
        this.endTime = endTime;
        this.pageSize = pageSize;
        this.pageNum = pageNum;
        this.attrValues = attrValues;
    }

    public String getPageSize()
    {
        return pageSize;
    }

    public void setPageSize(String pageSize)
    {
        if (!"".equals(pageSize))
        {
            this.pageSize = pageSize;
        }
    }

    public String getPageNum()
    {
        return pageNum;
    }

    public void setPageNum(String pageNum)
    {
        if (!"".equals(pageNum))
        {
            this.pageNum = pageNum;
        }
    }

    public String getAttrValue()
    {
        return attrValue;
    }

    public void setAttrValue(String attrValue)
    {
        this.attrValue = attrValue;
    }

    public Date getStartTime()
    {
        return startTime;
    }

    public void setStartTime(Date startTime)
    {
        this.startTime = startTime;
    }

    public Date getEndTime()
    {
        return endTime;
    }

    public void setEndTime(Date endTime)
    {
        this.endTime = endTime;
    }

    public String getAttrValues()
    {
        return attrValues;
    }

    public void setAttrValues(String attrValues)
    {
        this.attrValues = attrValues;
    }

    public Integer getAttrId() {
        return attrId;
    }

    public void setAttrId(Integer attrId) {
        this.attrId = attrId;
    }

    public String getAttrName() {
        return attrName;
    }

    public void setAttrName(String attrName) {
        this.attrName = attrName == null ? null : attrName.trim();
    }

    public Integer getAttrStatus() {
        return attrStatus;
    }

    public void setAttrStatus(Integer attrStatus) {
        this.attrStatus = attrStatus;
    }

    public Integer getSortNum() {
        return sortNum;
    }

    public void setSortNum(Integer sortNum) {
        this.sortNum = sortNum;
    }

    public Integer getIsDel() {
        return isDel;
    }

    public void setIsDel(Integer isDel) {
        this.isDel = isDel;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy == null ? null : createBy.trim();
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy == null ? null : updateBy.trim();
    }
}